// API服务
export async function getSaleOrders(params) {
    const response = await fetch(`/saleOrder/list?${new URLSearchParams(params)}`);
    return response.json();
}

export async function getAfterSaleOrders(params) {
    const response = await fetch(`/afterSaleOrder/list?${new URLSearchParams(params)}`);
    return response.json();
}

export async function importExcel(formData) {
    const response = await fetch('/saleOrder/import', {
        method: 'POST',
        body: formData
    });
    return response.json();
}